package com.chendongyang.www.po;//保存停车位预约的有关信息

public class appointment1 {
    private  String parkingS;
    private  String parkingB;
    private String time;

    @Override
    public String toString() {
        return "停车口：" + parkingS +
                "  停车位：" + parkingB +
                "  时间段" + time;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof appointment1)) return false;

        appointment1 that = (appointment1) o;

        if (parkingS != null ? !parkingS.equals(that.parkingS) : that.parkingS != null) return false;
        if (parkingB != null ? !parkingB.equals(that.parkingB) : that.parkingB != null) return false;
        return time != null ? time.equals(that.time) : that.time == null;
    }

    @Override
    public int hashCode() {
        int result = parkingS != null ? parkingS.hashCode() : 0;
        result = 31 * result + (parkingB != null ? parkingB.hashCode() : 0);
        result = 31 * result + (time != null ? time.hashCode() : 0);
        return result;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public appointment1(String parkingS, String parkingB, String time) {
        this.parkingS = parkingS;
        this.parkingB = parkingB;
        this.time = time;
    }

    public String getParkingS() {
        return parkingS;
    }

    public void setParkingS(String parkingS) {
        this.parkingS = parkingS;
    }

    public String getParkingB() {
        return parkingB;
    }

    public void setParkingB(String parkingB) {
        this.parkingB = parkingB;
    }

    public appointment1() {
    }

    public appointment1(String parkingS, String parkingB) {
        this.parkingS = parkingS;
        this.parkingB = parkingB;
    }
}
